package com.crm.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "executives")
public class Executives implements Serializable{

private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	@Column(name="id")
	private int id; 
	
	@Column(name="executive_name")
	private String exeName;
	
	@Column(name="address")
	private String address;
	
	private String phone;
	
	@Column(name="email_id")
	private String emailId;
	
	@ManyToOne
	@JoinColumn(name="BUSINESS_ID")
	private Business businessId;
	
	@Column(name="cell")
	private String cell;
	
	@Column(name="fax")
	private String fax;
	
	@Column(name="country")
	private String country;
	
	@Column(name="bloodGroup")
	private String bloodGroup;
	
	@Column(name="gender")
	private String gender;
	
	@Column(name="dob")
	private Date dob;
	
	@Column(name="joiningdate")
	private Date joiningDate;
	
	
	@Column(name="is_deleted")
	private boolean isDeleted;
	
	
	public boolean isDeleted() {
		return isDeleted;
	}
	public void setDeleted(boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	public String getBloodGroup() {
		return bloodGroup;
	}
	public void setBloodGroup(String bloodGroup) {
		this.bloodGroup = bloodGroup;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public Date getDob() {
		return dob;
	}
	public void setDob(Date dob) {
		this.dob = dob;
	}
	public Date getJoiningDate() {
		return joiningDate;
	}
	public void setJoiningDate(Date joiningDate) {
		this.joiningDate = joiningDate;
	}
	public String getCell() {
		return cell;
	}
	public void setCell(String cell) {
		this.cell = cell;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public Business getBusinessId() {
		return businessId;
	}
	public void setBusinessId(Business businessId) {
		this.businessId = businessId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getExeName() {
		return exeName;
	}
	public void setExeName(String exeName) {
		this.exeName = exeName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmailId() {
		return emailId;
	}
	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}
	
	public Executives(){
		
	}
	public Executives(Business bus,String exeName, String emailId, String phone,
			String address, String fax, String country,
			String cell, String bloodGroup, String gender, Date dob, Date joiningDate) {
		this.businessId=bus;
		this.exeName=exeName;
		this.emailId=emailId;
		this.phone=phone;
		this.fax=fax;
		this.country=country;		
		this.bloodGroup=bloodGroup;
		this.gender=gender;
		this.dob=dob;
		this.joiningDate=joiningDate;
	}
	public Executives(int id,Business bus,String exeName, String emailId, String phone,
			String address, String fax, String country,
			String cell, String bloodGroup, String gender, Date dob, Date joiningDate) {
		this.id=id;
		this.businessId=bus;
		this.exeName=exeName;
		this.emailId=emailId;
		this.phone=phone;
		this.address=address;
		this.fax=fax;
		this.country=country;
		this.cell=cell;
		this.bloodGroup=bloodGroup;
		this.gender=gender;
		this.dob=dob;
		this.joiningDate=joiningDate;
	}
}
